{extend name="base" /}
{block name="body"}
<div class="layui-card">
	<div class="layui-card-body">
		<table class="layui-table layui-form">
			<thead>
				<tr>
                                    <th>ID</th>
                                    <th>模型</th>
                                    <th>存储位置</th>
                                    <th>上传用户</th>
                                    <th>图片</th>
                                    <th>文件名</th>
                                    <th>文件大小</th>
                                    <th>上传时间</th>
                                    <th>操作</th>
				</tr>
			</thead>
			<tbody>
				{foreach name="list" item="v" empty="$empty"}
				<tr>
                                    <td>{$v.id}</td>
                                    <td>{$v.model}</td>
                                    <td>{$v.type}</td>
                                    <td>{$v.user_id}</td>
                                    <td><img src="{$v.url}" height="80"></td>
                                    <td>{$v.filename}</td>
                                    <td>{$v.filesize}</td>
                                    <td>{$v.create_time}</td>
                                    <td>
                                            <a href="{:url('admin/uploads/del', ['id' => $v.id])}" class="layui-btn layui-btn-sm layui-btn-danger ajax-delete"><i class="fa fa-trash-o"></i> 删除</a>
                                    </td>
				</tr>
				{/foreach}
			</tbody>
		</table>
		<div class="page">{$list|raw}</div>
	</div>
</div>
{/block}
